import request from '@/utils/request'

// 查询公司检查列表
export function listEnter(query) {
  return request({
    url: '/enter/enter/list',
    method: 'get',
    params: query
  })
}

// 查询我参与的检查
export function getEnter(data) {
  return request({
    url: '/enter/enter/myList',
    method: 'get',
    params:data,
  })
}
// 查询我的待办
export function getEnterDel(data) {
  return request({
    url: '/enter/enter/myTodo',
    method: 'get',
    params:data,
  })
}

// 新增公司检查
export function addEnter(data) {
  return request({
    url: '/enter/enter',
    method: 'post',
    data: data
  })
}

// 修改公司检查
export function updateEnter(data) {
  return request({
    url: '/enter/enter',
    method: 'put',
    data: data
  })
}

// 删除公司检查
export function delEnter(id) {
  return request({
    url: '/enter/enter/' + id,
    method: 'delete'
  })
}

// 数据透视
export function EnterPiovt(id) {
  return request({
    url: '/enter/enter/getDataPivot/' + id,
    method: 'get'
  })
}


// 查看
export function getDataList(data) {
  return request({
    url: '/enterCheckProject/enterCheckProject/list',
    method: 'get',
    params:data
  })
}